﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true"
    CodeBehind="ResourceRequestManager.aspx.cs" Inherits="Web.Views.ResourceRequestManage.ResourceRequestManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Javascript/UserControls.js" type="text/javascript"></script>
    <script src="../../Javascript/jquery.query.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            if ($.query.get("querytype") == "1") {
                $('#tt').tabs('close', "已审核申请");
            }
            else {
                $('#tt').tabs('close', "待审核申请");
            }

        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tt" class="easyui-tabs" border="false">
        <div title="待审核申请" id="id1">
            <%--            <asp:Button OnClick="btn_AgreeList_Click" ID="btn_AgreeList" runat="server" Text="Agree" />
            <asp:Button OnClick="btn_DisAgreeList_Click" ID="btn_DisAgreeList" runat="server"
                Text="DisAgree" />--%>
            <button type="button" class="sexybutton" runat="server" id="btn_AgreeList" onserverclick="btn_AgreeList_Click">
                <span><span><span class="edit">同意</span></span></span></button>
            <button type="button" class="sexybutton" id="btn_DisAgreeList" runat="server" onserverclick="btn_DisAgreeList_Click">
                <span><span><span class="transfer">不同意</span></span></span></button>
            <div style="overflow: hidden;">
                <ep:EPGridView ID="gv_ResourceRequestList" runat="server" Width="100%" AutoGenerateColumns="False"
                    ShowCheckBox="true" DataKeyNames="ID">
                    <Columns>
                        <asp:BoundField DataField="ID" Visible="false" />
                        <asp:HyperLinkField HeaderText="文件名" HeaderStyle-Width="15%" DataTextField="DataFileName"
                            NavigateUrl="" ItemStyle-HorizontalAlign="Center" DataNavigateUrlFormatString="ResourceRequestManagerExam.aspx?querytype=1&ID={0}"
                            DataNavigateUrlFields="ID" />
                        <asp:BoundField HeaderText="申请用户" DataField="USERNAME" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="所在单位" DataField="ORGNAME" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="过期日期" DataField="validperiod" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" DataFormatString="{0: yyyy-MM-dd}">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="申请日期" DataField="createtime" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center"
                            DataFormatString="{0: yyyy-MM-dd}">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="能否下载" DataField="candownload" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="4%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="能否浏览" DataField="canview" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="4%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </ep:EPGridView>
                <ep:AspNetPager SubmitButtonText=" GO " ID="pagerUndo" Height="26px" CssClass="yahoo2"
                    runat="server" PageSize="10" ShowCustomInfoSection="Right" CustomInfoClass="custom"
                    CustomInfoStyle=" clear:both;" ShowPageIndexBox="Always" SubmitButtonImageUrl="../Images/go.png"
                    ShowPageIndex="true" PageIndexBoxType="TextBox" CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条"
                    OnPageChanging="pagerUndo_PageChanging" AlwaysShow="true">
                </ep:AspNetPager>
            </div>
        </div>
        <div title="已审核申请" id="id2">
            <div style="overflow: hidden">
                <ep:EPGridView ID="gv_ResourceRequestListDone" runat="server" Width="100%" AutoGenerateColumns="False"
                    DataKeyNames="ID" ShowCheckBox="false" OnRowDataBound="gv_ResourceRequestList_Bound">
                    <Columns>
                        <asp:BoundField DataField="ID" Visible="false" />
                        <asp:HyperLinkField HeaderText="文件名" HeaderStyle-Width="15%" DataTextField="DataFileName"
                            NavigateUrl="" ItemStyle-HorizontalAlign="Center" DataNavigateUrlFormatString="ResourceRequestManagerExam.aspx?querytype=2&ID={0}"
                            DataNavigateUrlFields="ID" />
                        <asp:BoundField HeaderText="申请用户" DataField="USERNAME" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="过期日期" DataField="validperiod" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" DataFormatString="{0: yyyy-MM-dd}">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="申请日期" DataField="createtime" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center"
                            DataFormatString="{0: yyyy-MM-dd}">
                            <HeaderStyle Width="7%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:HyperLinkField HeaderText="能否下载" HeaderStyle-Width="4%" DataTextField="candownload"
                            NavigateUrl="" ItemStyle-HorizontalAlign="Center" DataNavigateUrlFormatString="ResourceRequestManagerExam.aspx?querytype=1&ID={0}"
                            Target="_blank" DataNavigateUrlFields="ID" />
                        <asp:HyperLinkField HeaderText="能否浏览" HeaderStyle-Width="4%" DataTextField="canview"
                            NavigateUrl="" ItemStyle-HorizontalAlign="Center" DataNavigateUrlFormatString="ResourceRequestManagerExam.aspx?querytype=1&ID={0}"
                            Target="_blank" DataNavigateUrlFields="ID" />
                    </Columns>
                </ep:EPGridView>
                <ep:AspNetPager SubmitButtonText=" GO " ID="pagerDone" Height="26px" Width="100%"
                    CssClass="yahoo2" runat="server" PageSize="10" LayoutType="Table" ShowCustomInfoSection="Right"
                    CustomInfoClass="custom" CustomInfoStyle=" clear:both;" ShowPageIndexBox="Always"
                    SubmitButtonImageUrl="../Images/go.png" ShowPageIndex="true" PageIndexBoxType="TextBox"
                    CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条"
                    OnPageChanging="pagerDone_PageChanging" AlwaysShow="true">
                </ep:AspNetPager>
            </div>
        </div>
    </div>
</asp:Content>
